package digimon.organism.instructions;

import digimon.Main;

public class InstructionV extends Instruction {
	public InstructionV() {
		int i = Main.rng.giveMeRandom(InstructionSet.TOTAL+InstructionSetV.SUBTOTAL);
		// If the instruction set is from generic instructionSet, then set this number
		if(i <= InstructionSet.TOTAL){
			setType(i);
		// If not, we need to set the type number relative to InstructionSetV - that's starting with 100
		} else {
			// Fist we need to count how much 'i' has passed from the InstructionSet.TOTAl
			// So, we need to set the type to the the i_st instruction from InstructionSetV 
			i = i - InstructionSet.TOTAL;
			setType(100+i);
		}
		int type = getType();
		System.out.println(type);
	}

}
